﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Outlook = Microsoft.Office.Interop.Outlook;

namespace OutlookTags
{
    [
    Guid("72687834-F768-4c29-A84F-AC5AC2C5722E"),
    ProgId("Outlook.TagsPanel"),
    ComVisible(true)
    ]
    public partial class TagsPannel : UserControl, ITagsView
    {
        public TagsPannel()
        {
            InitializeComponent();
        }



        #region ITagsView Members

        public void Initialize(TagsController controller)
        {
            tagsList1.Initialize(controller);
        }

        public void UpdateDisplayTags(IList<DisplayTag> displayTags)
        {
            tagsList1.UpdateDisplayTags(displayTags);
        }

        public void UpdateSelection(IList<DisplayTag> displayTags)
        {
            tagsList1.UpdateSelection(displayTags);
        }

        public void SetArchiveEnabled(bool enabled)
        {
            tagsList1.SetArchiveEnabled(enabled);
        }

        #endregion
    }
}
